package org.ling.xuan.util;

public class ExUtil {
    public static String getExMsg(Exception e, String split) {
        StringBuilder s = new StringBuilder();
        StackTraceElement[] els = e.getStackTrace();
        if (els != null && els.length > 0) {
            for (int j = 0; j < els.length; j++) {
                s.append(els[j].toString()).append(split);
            }
        } else {
            s.append("no stack message");
        }
        return s.toString();
    }
}
